﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WcfasignarMuestreadorService;

public partial class Asignar_Muestreador : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnGrabar_Click(object sender, EventArgs e)
    {
        EAsignarMuestreador obj1 = new EAsignarMuestreador();
        obj1.cod_asignacion = 0;
        obj1.dni1 = "";
        obj1.dni2 = "";
        obj1.fec_salida = "";
        obj1.comentario = "";
        obj1.fec_asigna = "";

        WcfasignarMuestreadorService.IasignarMuestreadorServiceClient obj2 = new WcfasignarMuestreadorService.IasignarMuestreadorServiceClient();
        Page.ClientScript.RegisterStartupScript(Page.GetType(), "Mensaje", "<script language='javascript'>alert('" + obj2.AsignarMuestreador(obj1).ToString() + "');</script>");
    }
}